#include"SeqList.h"

void text1()
{
	sl s;
	slInit(&s);

	slPushBack(&s, 1);
	slPushBack(&s, 2);
	slPushBack(&s, 3);
	slPushBack(&s, 4);
	slPushBack(&s, 5);
	slPushBack(&s, 5);
	slPushBack(&s, 5);
	slPushBack(&s, 3);
	slPushBack(&s, 2);
	slPushBack(&s, 6);

	slPushFront(&s, 1);
	slPushFront(&s, 2);
	slPushFront(&s, 3);
	slPushFront(&s, 4);
	slPushFront(&s, 5);

	slPopBack(&s);
	slPopBack(&s);

	print(&s);

	destory(&s);
}
void text2()
{
	sl s;
	slInit(&s);

	slPushFront(&s, 1);
	slPushFront(&s, 2);
	slPushFront(&s, 3);
	slPushFront(&s, 4);
	slPushFront(&s, 5);
	slPushFront(&s, 6);
	slPushFront(&s, 5);

	slPopFront(&s);
	slPopFront(&s);

	print(&s);

	destory(&s);
}
void text3()
{
	sl s;
	slInit(&s);

	slPushFront(&s, 1);
	slPushFront(&s, 2);
	slPushFront(&s, 3);
	slPushBack(&s, 4);
	slPushBack(&s, 5);
	slPushBack(&s, 5);
	slPushBack(&s, 5);
	slPushBack(&s, 5);
	slPushBack(&s, 5);
	slPushBack(&s, 5);

	slInsert(&s, 6, 6);
	slInsert(&s, 3, 6);

	slEarse(&s, 3);
	slEarse(&s, 6);

	slPopFront(&s);
	slPopBack(&s);

	int a=slFind(&s, 4);
	printf("%d\n", a);
	slFind(&s, 6);

	slDelete(&s, 5);
	print(&s);

	destory(&s);
}
int main()
{
	text3();
	return 0;
}